﻿@model KRM.Core.tblUser

<form action="/users/changedepartment" method="POST">
    <input type="hidden" name="UserId" value="@Model.UserID"/>
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h5 id="myModalLabel">@(Model.WebPermissionDepartments.FirstOrDefault() != null ? "Current department: " + Model.WebPermissionDepartments.FirstOrDefault().Name : "Add department")</h5>
    </div>
    <div class="modal-body body-addrole">
        <div class="row-fluid">
            <div class="row-fluid">
                <div class="span1"></div>
                <div class="span3">Department</div>
                <div class="span8">
                    @Html.DropDownList("DepartmentID")
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <input type="submit" class="btn btn-primary btn-addrole" value="@(Model.RoleId != null ? "Update" : "Add")">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
    </div>
</form>
